home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / Adobe AIR / Versions / 1.0 / Adobe AIR Application Installer.swf / scripts / _CheckBoxStyle.as < prev    next >
Text File  |  2008-10-29  |  2KB  |  59 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.CheckBoxIcon;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _CheckBoxStyle
  9.    {
  10.        
  11.       
  12.       public function _CheckBoxStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CheckBox");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration("CheckBox",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.skin = null;
  31.                this.paddingLeft = 0;
  32.                this.selectedDisabledIcon = null;
  33.                this.fontWeight = "normal";
  34.                this.selectedOverIcon = null;
  35.                this.upSkin = null;
  36.                this.overIcon = null;
  37.                this.iconColor = 2831164;
  38.                this.overSkin = null;
  39.                this.selectedDisabledSkin = null;
  40.                this.selectedDownIcon = null;
  41.                this.disabledIcon = null;
  42.                this.textAlign = "left";
  43.                this.selectedDownSkin = null;
  44.                this.selectedUpSkin = null;
  45.                this.paddingRight = 0;
  46.                this.selectedOverSkin = null;
  47.                this.upIcon = null;
  48.                this.icon = CheckBoxIcon;
  49.                this.downSkin = null;
  50.                this.horizontalGap = 5;
  51.                this.selectedUpIcon = null;
  52.                this.disabledSkin = null;
  53.                this.downIcon = null;
  54.             };
  55.          }
  56.       }
  57.    }
  58. }
  59.